package com.gzist.elderlyserviceplatform.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema; // 替换包路径 [[4]]
import lombok.Data;

/**
 * 分片上传请求DTO
 **/
@Data
@Schema(name = "ChunkUploadDTO", description = "分片上传请求参数（不包含文件）")
public class ChunkUploadDTO {

    @Schema(description = "分片序号（从0开始）", example = "0", required = true)
    private Integer chunkIndex;

    @Schema(description = "文件MD5值", example = "e99a18c428cb38d5f260853678922e03", required = true)
    private String fileMd5;

    @Schema(description = "原始文件名", example = "document.pdf", required = true)
    private String fileName;

    @Schema(description = "文件类型", example = "application/pdf", required = true)
    private String fileType;

    @Schema(description = "总分片数", example = "5", required = true)
    private Integer totalChunks;
}